package net.borlis.sample.services.facade.ws.request;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by alexander.borlis on 14.07.2014.
 */
@XmlRootElement
public class HistoryFilterView {

    private Long changeFrom;

    private Long changeTo;

    private Long uploadFrom;

    private Long uploadTo;

    private String user;

    private String[] changeCategories;

    private Long actionType;

    private Long elementType;

    private Long resultType;

    private String element;

    private Integer from;

    private Integer items;

    private String sortK;

    private String sortO;

    public HistoryFilterView() {
    }

    public HistoryFilterView(Long changeFrom, Long changeTo, String[] changeCategoriesArr) {
        this.changeFrom = changeFrom;
        this.changeTo = changeTo;
        this.changeCategories = changeCategoriesArr.clone();
    }

    @XmlElement(name = "changeFrom")
    public Long getChangeFrom() {
        return changeFrom;
    }

    public void setChangeFrom(Long changeFrom) {
        this.changeFrom = changeFrom;
    }

    @XmlElement(name = "changeTo")
    public Long getChangeTo() {
        return changeTo;
    }

    public void setChangeTo(Long changeTo) {
        this.changeTo = changeTo;
    }

    @XmlElement(name = "uploadFrom")
    public Long getUploadFrom() {
        return uploadFrom;
    }

    public void setUploadFrom(Long uploadFrom) {
        this.uploadFrom = uploadFrom;
    }

    @XmlElement(name = "uploadTo")
    public Long getUploadTo() {
        return uploadTo;
    }

    public void setUploadTo(Long uploadTo) {
        this.uploadTo = uploadTo;
    }

    @XmlElement(name = "user")
    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    @XmlElement(name = "changeCategories")
    public String[] getChangeCategories() {
        return changeCategories.clone();
    }

    public void setChangeCategories(String[] changeCategoryArr) {
        this.changeCategories = changeCategoryArr.clone();
    }

    @XmlElement(name = "actionType")
    public Long getActionType() {
        return actionType;
    }

    public void setActionType(Long actionType) {
        this.actionType = actionType;
    }

    @XmlElement(name = "elementType")
    public Long getElementType() {
        return elementType;
    }

    public void setElementType(Long elementType) {
        this.elementType = elementType;
    }

    @XmlElement(name = "resultType")
    public Long getResultType() {
        return resultType;
    }

    public void setResultType(Long resultType) {
        this.resultType = resultType;
    }

    @XmlElement(name = "element")
    public String getElement() {
        return element;
    }

    public void setElement(String element) {
        this.element = element;
    }

    @XmlElement(name = "from")
    public Integer getFrom() {
        return from;
    }

    public void setFrom(Integer from) {
        this.from = from;
    }

    @XmlElement(name = "items")
    public Integer getItems() {
        return items;
    }

    public void setItems(Integer items) {
        this.items = items;
    }

    @XmlElement(name = "sortK")
    public String getSortK() {
        return sortK;
    }

    public void setSort(String sortK) {
        this.sortK = sortK;
    }

    @XmlElement(name = "sortO")
    public String getSortO() {
        return sortO;
    }

    public void setSortO(String sortO) {
        this.sortO = sortO;
    }

}
